import request from '@/utils/request'

// 申请领养
export function addAdoption(data) {
  return request({
    url: '/adoption-record',
    method: 'POST',
    data
  })
}
// 领养记录列表
export function getAdoptionList(data) {
  return request({
    url: '/adoption-record',
    method: 'GET',
    params: data
  })
}
// 取消领养申请
export function cancelAdoption(data) {
  return request({
    url: `/adoption-record/batch`,
    method: 'DELETE',
    params: {
      ids: data
    }
  })
}
